<template>
  <div class="enterpriseFinancing">
    <!-- 阴影文字 -->
    <div class="shoadow-text">
      <div class="text">
        <div class="top">高收益&nbsp;企业理财服务</div>
        <div class="bottom">ENTERPRISE&nbsp;SERVICES</div>
      </div>
      <div class="shoadow">
        <div></div>
        <span>高收益首选，金融科技助力企业发展</span>
        <div class="last"></div>
      </div>
    </div>
    <!-- 企业理财 企业存款 -->
    <div class="enterprise">
      <img class="turn swiper-button-prev" v-lazy="require('@/assets/image/login/leftTurn.png')" />
      <div class="swiper-container" id="swiperbox">
        <div class="swiper-wrapper">
          <div class="swiper-slide swiper-no-swiping">
            <div class="content-box cursor-pointer">
              <div class="title">企业理财</div>
              <div class="image-btn left">
                <div class="top">重磅理财产品</div>
                <div class="bottom flex-center">
                  限量发行
                  <img v-lazy="require('@/assets/image/login/introMore.png')" />
                </div>
              </div>
              <div class="detail">
                <div class="detail-children">
                  <div>
                    4
                    <span>%</span>
                  </div>
                  <div>参考收益率</div>
                </div>
                <div class="detail-children">
                  <div>
                    2
                    <span>亿元</span>
                  </div>
                  <div>单户持仓上限</div>
                </div>

                <div class="detail-children">
                  <div>
                    3
                    <span>个月</span>
                  </div>
                  <div>产品期限</div>
                </div>

                <div class="detail-children">
                  <div>
                    300
                    <span>万元</span>
                  </div>
                  <div>起购金额</div>
                </div>
              </div>
            </div>
          </div>
          <div class="swiper-slide swiper-no-swiping">
            <div class="content-box content-box-right cursor-pointer">
              <div class="title">企业存款</div>
              <div class="image-btn right">
                <div class="top">随时存取&nbsp;实时到账</div>
                <div class="bottom flex-center">
                  全新上线
                  <img v-lazy="require('@/assets/image/login/introMore.png')" />
                </div>
              </div>
              <div class="detail">
                <div class="detail-children">
                  <div>
                    3.3
                    <span>%</span>
                  </div>
                  <div>预期年化收益率</div>
                </div>
                <div class="detail-children">
                  <div>1000</div>
                  <div>起投金（元）</div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <img class="turn swiper-button-next" v-lazy="require('@/assets/image/login/rightTurn.png')" />
    </div>
  </div>
</template>

<script>
import loadModule from '@/utils/loadModule';
export default {
  data() {
    return {
      mySwiper: '',
    };
  },
  mounted() {
    this.$nextTick(async function() {
      await loadModule.loadSwiper();
      this.mySwiper = new window.Swiper('#swiperbox', {
        loop: true, // 循环滚动
        slidesPerView: 2, // 网格数
        direction: 'horizontal', // 循环方向
        noSwiping: true, // 禁止slide上可拖动，需加上swiper-no-swiping类名
        prevButton: '.swiper-button-prev', // 按钮
        nextButton: '.swiper-button-next', // 按钮
      });
    });
  },
};
</script>

<style lang="scss">
.enterpriseFinancing {
  .swiper-slide {
    width: 50%;
  }

  .enterprise {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 1100px;
    margin: 0 auto;
    .swiper-container {
      flex: 1;
    }
    .turn {
      height: 44px;
      width: 16px;
      position: unset;
      background: none;
    }
    .content-box {
      margin: 20px auto;
      padding: 21px;
      width: 435px;
      height: 298px;
      background: $color-bg-default;
      border-radius: 14px;
      box-sizing: border-box;
      box-shadow: 0px 0px 20px 0px rgba(205, 205, 205, 0.4);
      .title {
        font-size: 21px;
        margin-bottom: 20px;
      }
      .left {
        background: url('~@/assets/image/login/introLeftBg.png') no-repeat 100%;
      }
      .right {
        background: url('~@/assets/image/login/introRightBg.png') no-repeat 100%;
      }
      .image-btn {
        overflow: hidden;
        width: 390px;
        height: 139px;
        color: $color-text-primary;
        text-align: center;
        margin-bottom: 18px;
        .top {
          width: 100%;
          font-size: 26px;
          font-weight: 600;
          margin: 32.23px 0 9.75px 0;
        }
        .bottom {
          font-size: 15px;
          img {
            width: 18px;
            margin-left: 7.75px;
          }
        }
      }
      .detail {
        display: flex;
        width: 100%;
        .detail-children {
          flex: 1;
          div:nth-child(1) {
            font-size: 20.25px;
            font-weight: 600;
            text-align: left;
            color: $color-text-hover;
            line-height: 27.75px;
            span {
              font-size: $s14;
            }
          }
          div:nth-child(2) {
            font-size: $s12;
            text-align: left;
            color: $color-text-normal;
          }
        }
      }
    }
    .content-box-right {
      .detail .detail-children {
        padding-left: 20%;
        div:nth-child(1) {
          color: #fe9e00;
        }
      }
    }
  }
}
</style>
